package com.fdb.efp.nls.service.dao;

import com.fdb.efp.nls.service.domain.SUserRole;
import com.fdb.efp.nls.service.vo.SUserVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>DAO interface:系统用户角色表				<p>
 * @author chenqm1
 * @date 2018-05-03
 */
public interface SUserRoleDao {
	
	public int insertSUserRole(SUserRole sUserRole);
	
	public int deleteByPk(SUserRole sUserRole);

	public int updateByPk(SUserRole sUserRole);
	
	public SUserRole queryByPk(SUserRole sUserRole);

	public List<SUserRole> queryList(SUserRole sUserRole);

	public List<String> queryRoles(String sUserCode);
	public List<SUserVO> queryAdminbyLegalOrg(String legalOrgCode);

	public List<SUserRole> queryAllOwnerByPage(SUserRole sUserRole);

	public List<SUserRole> queryByUserCode(@Param("userCode") String userCode);

}